package com.lzk.model;

import java.util.Map;
import java.util.Objects;

public class Player extends ZcUser{
	private Integer playerStatus;//准备/未准备
	private Integer role;//角色
	private ZcUser user;//用户

	public Player(ZcUser user) {
		this.user=user;
		this.setId(user.getId());
		this.setHeadImg(user.getHeadImg());
		this.setUserName(user.getUserName());
		this.setUserStatus(user.getUserStatus());
		this.setPlayerStatus(0);
	}

	public Player(Player p) {
		this.user=p.user;
		this.setId(p.getId());
		this.setHeadImg(p.getHeadImg());
		this.setUserName(p.getUserName());
		this.setUserStatus(p.getUserStatus());
		this.setPlayerStatus(p.getPlayerStatus());
		this.setRole(p.getRole());
	}
	
	public ZcUser getUser() {
		return user;
	}
	public void setUser(ZcUser user) {
		this.user = user;
	}
	public Integer getPlayerStatus() {
		return playerStatus;
	}
	public void setPlayerStatus(Integer playerStatus) {
		set("playerStatus",playerStatus);
		this.playerStatus = playerStatus;
	}
	public Integer getRole() {
		return role;
	}
	public void setRole(Integer role) {
		set("role",role);
		this.role = role;
	}
}
